<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,user-scalable=no,minimal-ui">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../img/asset-favico.ico">
    <title>预约详情</title>
    <link rel="stylesheet" href="../css/page-health-orderDetail.css"/>
    <script src="../plugins/vue/vue.js"></script>
    <script src="../plugins/vue/axios-0.18.0.js"></script>
    <script src="../plugins/healthmobile.js"></script>

    <link rel="stylesheet" href="../plugins/element-ui/lib/theme-chalk/index.css"/>
    <script src="../plugins/element-ui/lib/index.js"></script>

    <style>

        .hrStyle {
            border: none;
            border-top: 10px solid #E8E8E8;
        }

        .details-font-style {
            width: 90%;
            margin: auto;
            height: 40px;
            padding: 10px;
            font-size: 18px;
            color: #6E6E6E;
        }

        #aStyle {
            width: 100%;
            text-align: center;
            color: red;
            height: 60px;
        }

    </style>

    <script>
        var id = getUrlParam("id");
    </script>

</head>
<body data-spy="scroll" data-target="#myNavbar" data-offset="150">

<div id="app" class="app">

    <!-- 页面头部 -->
    <div class="top-header">
        <span class="f-left"><i class="icon-back" onclick="history.go(-1)"></i></span>
        <span class="center">传智健康</span>
        <span class="f-right">
            <el-row class="block-col-2">
                <el-dropdown trigger="click">
                    <span class="el-dropdown-link">
                        <i class="el-icon-more"></i>
                    </span>
                    <el-dropdown-menu slot="dropdown">
                        <el-dropdown-item icon="el-icon-s-home">
                            <el-button type="text" @click="toIndex()">首&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;页</el-button>
                        </el-dropdown-item>
                        <el-dropdown-item icon="el-icon-user">
                            <el-button type="text" @click="toPersonalCenter()">个人中心</el-button>
                        </el-dropdown-item>
                    </el-dropdown-menu>
                </el-dropdown>
            </el-row>
        </span>
    </div>

    <!-- 页面内容 -->
    <div class="contentBox">

        <div class="card">
            <div class="project-img">
                <img :src="imgUrl" width="100%" height="100%"/>
            </div>

            <div class="project-text">
                <h4 class="tit">{{recordDetails.s_name}}</h4>
                <p class="subtit">{{recordDetails.s_remark}}</p>
                <p style="font-size: 15px;color: red;">套餐价格:{{recordDetails.s_price}}</p>
                <p class="keywords">
                    <span>{{recordDetails.s_sex == '0' ? '性别不限' : recordDetails.s_sex == '1' ? '男':'女'}}</span>
                    <span>{{recordDetails.s_age}}</span>
                </p>
            </div>
            <hr class="hrStyle"/>

            <div class="details-font-style">
                <i class="el-icon-s-custom" style="font-size: 25px"></i>&nbsp;&nbsp;预约人:{{recordDetails.m_name}}
            </div>
            <hr class="hrStyle"/>

            <div class="details-font-style">
                <i class="el-icon-s-custom" style="font-size: 25px"></i>&nbsp;&nbsp;预约方式:{{recordDetails.o_orderType}}
            </div>
            <hr class="hrStyle"/>

            <div class="details-font-style">
                <i class="el-icon-s-custom" style="font-size: 25px"></i>&nbsp;&nbsp;预约时间:{{recordDetails.o_orderDate}}
            </div>
            <hr class="hrStyle"/>

            <div class="details-font-style">
                <i class="el-icon-s-custom" style="font-size: 25px"></i>&nbsp;&nbsp;到诊情况:{{recordDetails.o_orderStatus}}
            </div>
            <hr class="hrStyle"/>

            <div class="details-font-style">
                <i class="el-icon-s-custom" style="font-size: 25px"></i>&nbsp;&nbsp;预约体检机构地址:{{recordDetails.a_address}}
            </div>
            <hr class="hrStyle"/>

            <div id="aStyle">
                <a href="m_setmeal.html">点击查看所有套餐</a>
            </div>


        </div>

    </div>
</div>
</body>

<script>
    new Vue({
        el: '#app',

        data: {
            imgUrl:null,//套餐对应的图片链接
            recordDetails: {}
        },

        methods: {

            toIndex() {
                window.location.href="index.html";
            },

            toPersonalCenter() {
                window.location.href="personalCenter.html";
            },

        },

        created() {
            axios.get("/order/getRecordDetails.do?id=" + id).then((resp) => {
                if (resp.data.flag) {
                    this.recordDetails = resp.data.data;
                    this.imgUrl = 'http://qghyk26b4.hd-bkt.clouddn.com/' + this.recordDetails.s_img;
                } else {
                    this.$message.error(resp.data.message);
                }
            });
        }
    });
</script>

</html>